package java67_adv3;

public class RoundTest {

	public static void main(String[] args) {
		double d = Math.round(3.55555);
		System.out.println(d);
		// Math.random()=>[0-1) >=0 <1
		// 包装类有不变性
		Integer i = new Integer("100");
		Integer j = i;
		i++;
		System.out.println(j);
		// Integer.toHexString(i)
		String sex = Double.toHexString(193949343.3432434);
		System.out.println(sex);
		System.out.println(">>>>>>>>String.format>>>>>>>>>>>>.");
		String str = String.format("%s now is %x岁,我今年%+d岁", "老王", 13613, 29);
		System.out.println(str);
	}

}
